package com.spring.sd.configurationtest;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * date: 2024/5/6
 */
//@Configuration(proxyBeanMethods = false)
public class UserConfig {


    @Bean
    UserA userA() {
        return new UserA();
    }

    @Bean
    UserB userB1() {
        return new UserB(userA());
    }

    @Bean
    UserB userB2() {
        return new UserB(userA());
    }
}
